package com.shardingdemo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * @author chen_lei
 * @date 2020/7/21 21:27
 */
@Data
@TableName(value = "user")
public class User implements Serializable {
    @TableId(value = "user_id", type = IdType.INPUT)
    private String userId;

    @TableField(value = "order_id")
    private Integer orderId;

    @TableField(value = "num")
    private Integer num;

    private static final long serialVersionUID = 1L;
}